package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.JcOutcomeMapper;
import com.ruoyi.system.domain.JcOutcome;
import com.ruoyi.system.service.IJcOutcomeService;
import com.ruoyi.common.core.text.Convert;

/**
 * 竞彩胜负Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-07-20
 */
@Service
public class JcOutcomeServiceImpl implements IJcOutcomeService 
{
    @Autowired
    private JcOutcomeMapper jcOutcomeMapper;

    /**
     * 查询竞彩胜负
     * 
     * @param id 竞彩胜负主键
     * @return 竞彩胜负
     */
    @Override
    public JcOutcome selectJcOutcomeById(Long id)
    {
        return jcOutcomeMapper.selectJcOutcomeById(id);
    }

    /**
     * 查询竞彩胜负列表
     * 
     * @param jcOutcome 竞彩胜负
     * @return 竞彩胜负
     */
    @Override
    public List<JcOutcome> selectJcOutcomeList(JcOutcome jcOutcome)
    {
        return jcOutcomeMapper.selectJcOutcomeList(jcOutcome);
    }

    /**
     * 新增竞彩胜负
     * 
     * @param jcOutcome 竞彩胜负
     * @return 结果
     */
    @Override
    public int insertJcOutcome(JcOutcome jcOutcome)
    {
        return jcOutcomeMapper.insertJcOutcome(jcOutcome);
    }

    /**
     * 修改竞彩胜负
     * 
     * @param jcOutcome 竞彩胜负
     * @return 结果
     */
    @Override
    public int updateJcOutcome(JcOutcome jcOutcome)
    {
        return jcOutcomeMapper.updateJcOutcome(jcOutcome);
    }

    /**
     * 批量删除竞彩胜负
     * 
     * @param ids 需要删除的竞彩胜负主键
     * @return 结果
     */
    @Override
    public int deleteJcOutcomeByIds(String ids)
    {
        return jcOutcomeMapper.deleteJcOutcomeByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除竞彩胜负信息
     * 
     * @param id 竞彩胜负主键
     * @return 结果
     */
    @Override
    public int deleteJcOutcomeById(Long id)
    {
        return jcOutcomeMapper.deleteJcOutcomeById(id);
    }
}
